package org.apache.ibatis.test.mapper;

import org.apache.ibatis.annotations.*;
import org.apache.ibatis.test.entity.Payment;

import java.util.List;

/**
 * @Description
 * @Author houchenkai
 * @Created Date: 2020/9/15 15:38
 * @ClassName
 */
//@CacheNamespace  缓存命名空间
//@CacheNamespaceRef  缓存

public interface PaymentMapper {

//  @Results({
//    @Result(id = true, property = "id", column = "id")
//  })
//  @TypeDiscriminator(
//    column = "draft",
//    javaType = int.class,
//    cases = {@Case(value = "1", type = DraftPost.class,
//      results = {@Result(id = true, property = "id", column = "id")})}
//  )
  //@Select(" select * from payment where id = #{id}")
  Payment getPayment(int id);

  List<Payment> selectAll (@Param("id") Integer id,@Param("serial") String serial);
}
